package com.naza.test.server;

import com.naza.rpc.Server.BootStrap;
import com.naza.rpc.filter.support.RateLimiterFilter;
import com.naza.test.services.impl.PersonManageImpl;

public class LocalServerStarter {
    public static void main(String[] args) {
        BootStrap bootStrap = new BootStrap("127.0.0.1","18887","18886");
        bootStrap.setProtocol("PROTOSTUFFSERIALIZE")
                //发布服务，并添加服务端流控
                .addModule("com.naza.test.services.PersonManage", new PersonManageImpl(),new RateLimiterFilter())
                .autoDiscovery(false)
                .start();

    }
}
